# -*- mode: snippet -*-
# name: kill or open application
# uuid:
# key: ,itkef
# condition: t
# --
if pgrep -x "${1:app name}" > /dev/null
then
    killall ${2:app name}
else
    $3
fi$4
